package com.zjl.spring.exception;

import com.zjl.spring.enums.BaseCodeI;

/**
 *  异常抽象基类
 *
 * @Auther: zhuangjl
 * @Date: 2021/11/11 15:39
 */
public abstract class BaseException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private BaseCodeI baseCode;

    public BaseException() {
    }

    public BaseException(String errMessage) {
        super(errMessage);
    }

    public BaseException(String errMessage, Throwable e) {
        super(errMessage, e);
    }

    public void setBaseCode(BaseCodeI basecode) {
        this.baseCode = basecode;

    }

    public BaseCodeI getBaseCode() {
        return this.baseCode;
    }

}
